/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.deployment.servicoimpl;

import br.com.deployment.entidade.protocolo.Parcela;
import br.com.deployment.interfaces.ParcelaDaoIn;
import br.com.deployment.interfaces.ProtocoloDaoIn;
import br.com.deployment.servico.ParcelaServico;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.LocalBean;
import javax.ejb.Stateless;

/**
 *
 * @author roniere
 */
@Stateless
@LocalBean
public class ParcelaServicoImpl implements ParcelaServico{

    @EJB
    ParcelaDaoIn parcelaDao;
    @EJB
    ProtocoloDaoIn protocoloDao;
    
    @Override
    public Parcela find(int id) {
        return parcelaDao.find(id);
    }


    @Override
    public List<Parcela> findAll() {
        return parcelaDao.findAll();
    }

    @Override
    public void atualizar(Parcela p) {
        parcelaDao.update(p);
    }
    
    @Override
     public List<Parcela> getParcelas(int id){
        return protocoloDao.getParcelas(id);
    }
}
